package com.manli.api.dto;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品浏览日志表
 * 
 * @author manli
 * @email 
 * @date 2020-07-09 15:40:34
 */
@ApiModel(value = "商品浏览日志表")
@Data
public class VisitLog implements Serializable {

	/**
	 * 唯一标识
	 */

    @ApiModelProperty(value = "唯一标识",dataType = "Integer")
	    private Integer visitLogId;
	/**
	 * 用户唯一openid
	 */

    @ApiModelProperty(value = "用户唯一openid",dataType = "String")
	    private String openid;
	/**
	 * 用户唯一unionid
	 */

    @ApiModelProperty(value = "用户唯一unionid",dataType = "String")
	    private String unionid;
	/**
	 * 商品唯一id
	 */

    @ApiModelProperty(value = "商品唯一id",dataType = "Integer")
	    private Integer goodsDefId;
	/**
	 * 浏览时间
	 */

    @ApiModelProperty(value = "浏览时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

	@ApiModelProperty(value = "浏览用户名称",dataType = "String")
	private String nickname;

	@ApiModelProperty(value = "多久前浏览",dataType = "String")
	private String borwsingTime;

	@ApiModelProperty(value = "类型 v 浏览 , b 购买",dataType = "String")
	private String logType;



}
